home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / cgelss.z / cgelss
Encoding:
Text File  |  2002-10-03  |  5.8 KB  |  199 lines

  1.  
  2.  
  3.  
  4. CCCCGGGGEEEELLLLSSSSSSSS((((3333SSSS))))                                                          CCCCGGGGEEEELLLLSSSSSSSS((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      CGELSS - compute the minimum norm solution to a complex linear least
  10.      squares problem
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      SUBROUTINE CGELSS( M, N, NRHS, A, LDA, B, LDB, S, RCOND, RANK, WORK,
  14.                         LWORK, RWORK, INFO )
  15.  
  16.          INTEGER        INFO, LDA, LDB, LWORK, M, N, NRHS, RANK
  17.  
  18.          REAL           RCOND
  19.  
  20.          REAL           RWORK( * ), S( * )
  21.  
  22.          COMPLEX        A( LDA, * ), B( LDB, * ), WORK( * )
  23.  
  24. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  25.      These routines are part of the SCSL Scientific Library and can be loaded
  26.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  27.      directs the linker to use the multi-processor version of the library.
  28.  
  29.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  30.      4 bytes (32 bits). Another version of SCSL is available in which integers
  31.      are 8 bytes (64 bits).  This version allows the user access to larger
  32.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  33.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  34.      only one of the two versions; 4-byte integer and 8-byte integer library
  35.      calls cannot be mixed.
  36.  
  37. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  38.      CGELSS computes the minimum norm solution to a complex linear least
  39.      squares problem: Minimize 2-norm(| b - A*x |).
  40.  
  41.      using the singular value decomposition (SVD) of A. A is an M-by-N matrix
  42.      which may be rank-deficient.
  43.  
  44.      Several right hand side vectors b and solution vectors x can be handled
  45.      in a single call; they are stored as the columns of the M-by-NRHS right
  46.      hand side matrix B and the N-by-NRHS solution matrix X.
  47.  
  48.      The effective rank of A is determined by treating as zero those singular
  49.      values which are less than RCOND times the largest singular value.
  50.  
  51.  
  52. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  53.      M       (input) INTEGER
  54.              The number of rows of the matrix A. M >= 0.
  55.  
  56.      N       (input) INTEGER
  57.              The number of columns of the matrix A. N >= 0.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. CCCCGGGGEEEELLLLSSSSSSSS((((3333SSSS))))                                                          CCCCGGGGEEEELLLLSSSSSSSS((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      NRHS    (input) INTEGER
  75.              The number of right hand sides, i.e., the number of columns of
  76.              the matrices B and X. NRHS >= 0.
  77.  
  78.      A       (input/output) COMPLEX array, dimension (LDA,N)
  79.              On entry, the M-by-N matrix A.  On exit, the first min(m,n) rows
  80.              of A are overwritten with its right singular vectors, stored
  81.              rowwise.
  82.  
  83.      LDA     (input) INTEGER
  84.              The leading dimension of the array A. LDA >= max(1,M).
  85.  
  86.      B       (input/output) COMPLEX array, dimension (LDB,NRHS)
  87.              On entry, the M-by-NRHS right hand side matrix B.  On exit, B is
  88.              overwritten by the N-by-NRHS solution matrix X.  If m >= n and
  89.              RANK = n, the residual sum-of-squares for the solution in the i-
  90.              th column is given by the sum of squares of elements n+1:m in
  91.              that column.
  92.  
  93.      LDB     (input) INTEGER
  94.              The leading dimension of the array B.  LDB >= max(1,M,N).
  95.  
  96.      S       (output) REAL array, dimension (min(M,N))
  97.              The singular values of A in decreasing order.  The condition
  98.              number of A in the 2-norm = S(1)/S(min(m,n)).
  99.  
  100.      RCOND   (input) REAL
  101.              RCOND is used to determine the effective rank of A.  Singular
  102.              values S(i) <= RCOND*S(1) are treated as zero.  If RCOND < 0,
  103.              machine precision is used instead.
  104.  
  105.      RANK    (output) INTEGER
  106.              The effective rank of A, i.e., the number of singular values
  107.              which are greater than RCOND*S(1).
  108.  
  109.      WORK    (workspace/output) COMPLEX array, dimension (LWORK)
  110.              On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
  111.  
  112.      LWORK   (input) INTEGER
  113.              The dimension of the array WORK. LWORK >= 1, and also:  LWORK >=
  114.              2*min(M,N) + max(M,N,NRHS) For good performance, LWORK should
  115.              generally be larger.
  116.  
  117.              If LWORK = -1, then a workspace query is assumed; the routine
  118.              only calculates the optimal size of the WORK array, returns this
  119.              value as the first entry of the WORK array, and no error message
  120.              related to LWORK is issued by XERBLA.
  121.  
  122.      RWORK   (workspace) REAL array, dimension (5*min(M,N))
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. CCCCGGGGEEEELLLLSSSSSSSS((((3333SSSS))))                                                          CCCCGGGGEEEELLLLSSSSSSSS((((3333SSSS))))
  137.  
  138.  
  139.  
  140.      INFO    (output) INTEGER
  141.              = 0:  successful exit
  142.              < 0:  if INFO = -i, the i-th argument had an illegal value.
  143.              > 0:  the algorithm for computing the SVD failed to converge; if
  144.              INFO = i, i off-diagonal elements of an intermediate bidiagonal
  145.              form did not converge to zero.
  146.  
  147. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  148.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  149.  
  150.      This man page is available only online.
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.